$OpenBSD: patch-imlib2-config_in,v 1.1 2017/02/24 18:47:54 jca Exp $
--- imlib2-config.in.orig	Tue Nov 22 21:22:32 2016
+++ imlib2-config.in	Tue Nov 22 21:24:13 2016
@@ -40,12 +40,12 @@ while test $# -gt 0; do
       ;;
     --cflags)
       if test @prefix@/include != /usr/include ; then
-        includes="-I@prefix@/include"
+        includes="-I@prefix@/include -I${X11BASE}/include"
       fi
       echo $includes
       ;;
     --libs)
-      libdirs=-L@libdir@
+      libdirs="-L@libdir@ -L${X11BASE}/lib"
       echo $libdirs -lImlib2
       ;;
     *)
